getWindowInsetsController

Deprecated

Prefer getInsetsController to explicitly specify the window (such as when the view is in a dialog).

Retrieves a WindowInsetsControllerCompat of the window this view is attached to.

Return

A WindowInsetsControllerCompat or null if the view is neither attached to a window nor a view tree with a decor.

See also